/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-18 20:31:42
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-18 20:46:29
 * @别瞎看: 你个无脑牛马
 */
class Duration{
    private int hours;
    private int minutes;
    private int seconds;
    public Duration(int hours,int minutes,int seconds){
        this.hours=hours;
        this.minutes=minutes;
        this.seconds=seconds;
        System.out.println("调用三参构造器");
    }
    public Duration(int minutes){
        this.hours=seconds/3600;
        this.minutes=(seconds%3600)/60;
        this.seconds=(seconds%3600)%60;
        System.out.println("调用一参构造器");
    }
    public void setHours(){
        this.hours=hours;
    }
    public int getHours(){
        return hours;
    }
    public void setMinutes(){
        this.minutes=minutes;
    }
    public int getMinutes(){
        return minutes;
    }
    public void setseconds(){
        this.seconds=seconds;
    }
    public int getseconds(){
        return seconds;
    }
}